/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * FrmPromSec.java
 *
 * Created on 19/02/2011, 01:08:41 AM
 */

package interfaz1;

/**
 *
 * @author CLIENTE
 */
public class FrmPromSec extends javax.swing.JFrame {

    /** Creates new form FrmPromSec */
    public FrmPromSec() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        lblpromsec = new javax.swing.JLabel();
        lblpromlis = new javax.swing.JLabel();
        txtpromseclis = new javax.swing.JTextField();
        btngenerar = new javax.swing.JButton();
        btnsalirlisprom = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Listados");
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        lblpromsec.setFont(new java.awt.Font("Bookman Old Style", 1, 12));
        lblpromsec.setText("Promedio de la Seccion");
        getContentPane().add(lblpromsec, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 30, 160, -1));

        lblpromlis.setFont(new java.awt.Font("Bookman Old Style", 0, 10));
        lblpromlis.setText("Promedio de la Seccion:");
        getContentPane().add(lblpromlis, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 80, -1, -1));

        txtpromseclis.setFont(new java.awt.Font("Bookman Old Style", 0, 10)); // NOI18N
        getContentPane().add(txtpromseclis, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 80, 100, 20));

        btngenerar.setText("Generar");
        btngenerar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btngenerarActionPerformed(evt);
            }
        });
        getContentPane().add(btngenerar, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 150, -1, -1));

        btnsalirlisprom.setText("Salir");
        btnsalirlisprom.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnsalirlispromActionPerformed(evt);
            }
        });
        getContentPane().add(btnsalirlisprom, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 150, 70, -1));

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-378)/2, (screenSize.height-265)/2, 378, 265);
    }// </editor-fold>//GEN-END:initComponents

    private void btnsalirlispromActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnsalirlispromActionPerformed
        // TODO add your handling code here:

        dispose();
    }//GEN-LAST:event_btnsalirlispromActionPerformed

    private void btngenerarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btngenerarActionPerformed
        // TODO add your handling code here:
        txtpromseclis.setText(String.valueOf(FrmOperacionesseccion.getMiseccion().MostrarPromedio()));
    }//GEN-LAST:event_btngenerarActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new FrmPromSec().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btngenerar;
    private javax.swing.JButton btnsalirlisprom;
    private javax.swing.JLabel lblpromlis;
    private javax.swing.JLabel lblpromsec;
    private javax.swing.JTextField txtpromseclis;
    // End of variables declaration//GEN-END:variables

}
